package com.statistics.cloudpower.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by studio on 2017/4/8.
 */
@Entity
@Table(name = "tbl_electricity_statistics_month")
public class TblElectricityStatisticsMonth {

    private Long id;
    private String mac;
    private int offset;
    private BigDecimal totalElectricity;
    private Timestamp statistics_time;
    private BigDecimal max_current;
    private BigDecimal max_power;

    public TblElectricityStatisticsMonth() {
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "mac",length = 100)
    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    @Basic
    @Column(name = "offset",length = 11)
    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    @Basic
    @Column(name = "total_electricity",precision = 13,scale = 3)
    public BigDecimal getTotalElectricity() {
        return totalElectricity;
    }

    public void setTotalElectricity(BigDecimal totalElectricity) {
        this.totalElectricity = totalElectricity;
    }

    @Basic
    @Column(name = "statistics_time")
    public Timestamp getStatisticsTime() {
        return statistics_time;
    }

    public void setStatisticsTime(Timestamp statistics_time) {
        this.statistics_time = statistics_time;
    }

    @Basic
    @Column(name = "max_current")
    public BigDecimal getMax_current() {
        return max_current;
    }

    public void setMax_current(BigDecimal max_current) {
        this.max_current = max_current;
    }
    @Basic
    @Column(name = "max_power")
    public BigDecimal getMax_power() {
        return max_power;
    }

    public void setMax_power(BigDecimal max_power) {
        this.max_power = max_power;
    }
}
